<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>javascript</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box
    }
    body {
      font-size: 14px;
      padding: 20px;
    }
    ul li {
      line-height: 30px;
    }
  </style>
</head>
<body>
  <ul>
    <li></li>
  </ul>
</body>
<script>
  // 剩余部分匹配
  var [e,d,g,...f] = [1,2,3,4,5,6]
  console.log(f)
  var {a,b,...c} = {
    a: 1,
    b: 2,
    c: 3,
    d: 4
  }
 // 用来处理不确定参数
 function test({a,b,...m}) {
   console.log(a,b,m)
 }
 test({
   a:1,
   b:2,
   k:3
 })

</script>
</html>